{% extends 'common/templates/base_navbar.html' %}
{% load format %}
{% block container %}
<div id="content">
{% block content %}{% endblock %}
</div>

{% if not request.mobile %}
<div id="sidebar">
  
  <div class="sidemain"> 
  <ul> 
  <li> 
	<div id="position"> 
	<h3>风格</h3>
		<ul id="skin">	
		   <li id="skin_0" title="Blue-Sky">Blue-Sky</li> 
		   <li id="skin_1" title="Red-Star">Red-Star</li> 
		   <li id="skin_2" title="Digu">Digu</li> 
		   <li id="skin_3" title="Rainbow">Rainbow</li> 
		   <li id="skin_5" title="Robot">Robot</li> 
		   <li id="skin_4" title="Green">Green</li> 
		</ul> 
	</div> 
	<div><h3>导航</h3>
	  {% if not request.mobile %}
        {% block mainnav %}
        <ul>
          {% if request.user %} {# The logged-in navigation #}
          <li {% ifequal area "home" %}class="current"{% endifequal %} >
            <span><a href="{{request.user.url}}/overview">首页</a></span>
          </li>
          <li {% ifequal area "people" %}class="current"{% endifequal %} >
            <span><a href="{{request.user.url}}/contacts">会员</a></span>
          </li>
          <li {% ifequal area "channel" %}class="current"{% endifequal %} >
            <span><a href="http://{{DOMAIN}}/channel">群组</a></span>
          </li>
          <li {% ifequal area "explore"%}class="current"{% endifequal %} >
            <span><a href="http://{{DOMAIN}}/explore">浏览</a></span>
          </li>
          {% else %}
          <li {% ifequal area "frontpage" %}class="current"{% endifequal %} >
            <span><a href="http://{{DOMAIN}}/">首页</a></span>
          </li>
          <li {% ifequal area "channel" %}class="current"{% endifequal %} >
            <span><a href="http://{{DOMAIN}}/channel">群组</a></span>
          </li>
          <li {% ifequal area "explore" %}class="current"{% endifequal %} >
            <span><a href="http://{{DOMAIN}}/explore">浏览</a></span>
          </li>
          {% endif %}
        </ul>
        {% endblock %}
      {% endif %}
	</div>

	<div><h3>Meta</h3><ul> 
		{% if not request.mobile %}
            {% block login %}
              {% if request.user %}
                <li>{% actor_link request.user request %} | 
                <a href="{{request.user.url}}/settings">设置</a> | 
                <a href="http://{{DOMAIN}}/logout">退出</a></li>
              {% else %}
                <li>
                {% if SUBDOMAINS_ENABLED %}
                  <a href="http://{{DOMAIN}}/login?redirect_to=http://{{request.META.HTTP_HOST}}{{request.META.PATH_INFO}}">登录</a> / <a href="/join">注册</a>
                {% else %}
                  <a href="http://{{DOMAIN}}/login?redirect_to={{request.META.PATH_INFO}}">登录</a> / <a href="/join">注册</a>
                {% endif %}</li>
              {% endif %}
            {% endblock %}
      {% endif %}
	  </ul> 
	</div> 
  {% block sidebar %}{% endblock %}
  </li></ul>
  </div>
  </div>
{% endif %}
{% endblock %}
